package com.yk.neon.lib.util.result;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BasicResponse<T> {

	private HttpCode result;
	private String msg;
	private T data;

	public boolean success() {
		return result == HttpCode.SUCCESS;
	}

}
